"""
@author: lyf
@file: 练习1.py
@time: 2022/10/28 17:36
"""
# import datetime
print("请输入您的身份证")
sf = input()
if len(sf) < 18:
    print("您的身份证长度不对")
elif str.isdigit(sf) == 0:
    print("您的身份证不应该包含字母")
elif print("您的生日是",sf[6:10]):
    print()
else:
    num = sf[6:10]
    numi = int(num)
    if 2022-numi<18:
        print("未成年")
    elif 18<2022-numi<50:
        print("青壮年")
    else:
        2022-numi>50
        print("老年")
